package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/10/15
 * Time:10:03
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.example.mapper"})  //扫描Mapper包下的所有接口
@EnableCaching //开启缓存扫描
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }

}
